//
//  DKBaseViewController.swift
//  Sina
//
//  Created by 赵柏清 on 16/7/29.
//  Copyright © 2016年 DarkZhao. All rights reserved.
//

import UIKit

class DKBaseViewController: UITableViewController ,DKVistorViewDelegate {
    
/// 访客视图
    let visitorView = DKVistorView()
    
    override func loadView() {
        if DKLoginViewModel.sharedInstance.isLogin {
            super.loadView()
        } else {
            view = visitorView
            visitorView.delegate = self
        }
        
        
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()

    }

}

// MARK: - DKBaseViewController的代理方法
extension DKBaseViewController {
    func didRegisterMethod() {
        printLog("注册回调")
    }
}
